import 'package:flutter/material.dart';
import 'package:go_pet/src/theme/app_colors.dart';

class LoginButton extends StatelessWidget {
  final String text;
  final Function onPressed;

  const LoginButton({
    super.key,
    required this.text,
    required this.onPressed,
  });

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: 45,
      width: 99,
      child: FloatingActionButton.extended(
        onPressed: () => onPressed,
        icon: const Icon(Icons.login),
        label: Text(
          text,
          style: Theme.of(context).textTheme.labelMedium,
        ),
        foregroundColor: AppColors.white,
        backgroundColor: AppColors.primary,
        hoverColor: AppColors.white,
      ),
    );
  }
}
